#!/bin/bash

for ((i=1;i<=100;i++))
do
name=test$i
cat <<EOF  | kubectl delete -f -
apiVersion: cdi.kubevirt.io/v1beta1
kind: DataVolume
metadata:
  name: $name
spec:
  source:
    registry:
      url: "docker://10.18.3.102/library/kubevirt:centos7.5"
  pvc:
    storageClassName: nfs-server-provisioner
    accessModes:
      - ReadWriteOnce
    resources:
      requests:
        storage: 20Gi



EOF
done
